﻿using System;
using System.Collections.Generic;

namespace DongFangGuoKai.WMSPlatform.Domain.Models
{
    /// <summary>
    /// 收货单明细
    /// </summary>
    public partial class TReceivingBillDetail
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 关联单Id
        /// </summary>
        public int BillId { get; set; }
        /// <summary>
        /// 关联单号(委托单号)
        /// </summary>
        public string BillNo { get; set; } = null!;
        /// <summary>
        /// 行号
        /// </summary>
        public string? BillLineNo { get; set; }
        /// <summary>
        /// 物料Id（样品id）
        /// </summary>
        public long? MaterialId { get; set; }
        /// <summary>
        /// 物料编码//唯一的每个单子的物料码都是唯一的
        /// </summary>
        public string? MaterialCode { get; set; }

        /// <summary>
        /// 存储位置（1：货架、2：自助柜、3：大件区）
        /// </summary>
        public int? PositionType { get; set; }

        /// <summary>
        /// 实验室
        /// </summary>
        public string? Laboratory { get; set; }

        /// <summary>
        /// 物料描述（样品名称）
        /// </summary>
        public string? MaterialName { get; set; }
        /// <summary>
        /// 物料类型编码
        /// </summary>
        public string? MaterialTypeCode { get; set; }
        /// <summary>
        /// 物料类型名称
        /// </summary>
        public string? MaterialTypeName { get; set; }
        /// <summary>
        /// 样品数量
        /// </summary>
        public decimal Qty { get; set; }

        /// <summary>
        /// 样品的分类（类别）
        /// </summary>
        public int? SampleTypeCode { get; set; }

        /// <summary>
        /// 样品的体积
        /// </summary>
        public string? SampleWeight { get; set; }

        /// <summary>
        /// 样品的重量
        /// </summary>
        public string? SampleSize { get; set; }

        /// <summary>
        /// 收货数量
        /// </summary>
        public decimal ReceivedQty { get; set; }
        /// <summary>
        /// 状态：0-未收货 1-已组垛  3-已完成 4-已作废
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate { get; set; }
        /// <summary>
        /// 确定时间
        /// </summary>
        public DateTime? ConfirmDate { get; set; }
        /// <summary>
        /// 采购单号
        /// </summary>
        public string? PurchaseOrderNo { get; set; }
        public DateTime? ProductDate { get; set; }
        public int? SupplierId { get; set; }
        public string? SupplierName { get; set; }
        public int? OwnerId { get; set; }
        public string? OwnerName { get; set; }
        public string? BatchNo { get; set; }
        public decimal? CheckedQty { get; set; }
        public decimal? NeedCheckQty { get; set; }
        public bool? IsNeedQc { get; set; }
        public decimal? Price { get; set; }
        public decimal? TotalPrice { get; set; }
        public string? BatchNoExplain { get; set; }
        public string? ProduceFactory { get; set; }
        public DateTime? OutFactoryDate { get; set; }
        public DateTime? ExpireDate { get; set; }
    }
}
